FROM java:8u111
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
# Ubuntu 时区
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
VOLUME /config
VOLUME /logs
ADD target/work-bug-0.0.1-SNAPSHOT.jar app.jar
EXPOSE 8084
ENTRYPOINT ["java","-jar","app.jar"]
# 启动命令
# docker build -t work-bug
# docker run -p 8080:8080 --name work-bug -v /usr/server/log/workbug:/logs -v /usr/server/config:/config work-bug

